package com.neusoft.neuiotms.dcam.fixed.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;

import org.hibernate.validator.constraints.Length;

import com.neusoft.bizcore.web.jpa.model.AbstractModel;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@Entity
@Table(name = "neuiot_inventory_duty_history")
@org.hibernate.annotations.Table(appliesTo = "neuiot_inventory_duty_history", comment = "盘点任务审批表")
public class InventoryDutyHistory extends AbstractModel {

    private static final long serialVersionUID = 1L;

    /** 盘点任务编码 */
    @NotBlank(message = "盘点任务编码不能为空")
    @Length(max = 255, message = "盘点任务编码不能超过{max}位")
    private String dutyCode;

    /** 审批意见 */
    @Length(max = 1024, message = "审批意见不能超过{max}位")
    @Column(nullable = true)
    private String comment;

    /** 状态：0：下发 1：提交 2：驳回 3：完成 */
    private int status = 0;

    /** 创建时间 */
    @Column(nullable = false)
    private Date createTime = new Date();

}
